package com.mycompany.crm.dao;

import com.mycompany.crm.base.BaseMapper;
import com.mycompany.crm.query.DataDicQuery;
import com.mycompany.crm.vo.DataDic;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DataDicMapper extends BaseMapper<DataDic,Integer> {

    /**
     * 多条件查询
     * @param dataDicQuery
     * @return
     */
    List<DataDic> selectByParams(DataDicQuery dataDicQuery);

    /**
     * 通过字典名称查询用户记录，返回数据字典对象
     * @param dataDicName
     * @return
     */
    DataDic queryDataDicByName(String dataDicName);
}